<?php
/**
 * Created by PhpStorm.
 * User: jc234839
 * Date: 21/05/2014
 * Time: 11:00 AM
 */

?>
<div id="orders">
    <div class="dashboardLabel">
        <a href="orders.php?orderResults"><p>ORDERS</p></a>
    </div>
    <div class="dashboard">
        <div class="create">
            <a href="orders.php?modifyOrders"><p>NEW/MOD</p></a>
        </div>
        <div class="dashboardForm">
            <form id="orderForm" name="orderForm" method="post" action="orders.php">
                <input type="text" name="searchOrders" id="searchOrders" value="Enter Order ID"
                       onfocus="if(this.value == 'Enter Order ID') {this.value=''}"
                       onblur="if(this.value == '') {this.value='Enter Order ID'}">
            </form>
        </div>
        <div class="search">
            <a href="#" id="orderIDToSearch"
               onclick="document.getElementById('orderIDToSearch').href = 'orders.php?orderID=' + document.getElementById('searchOrders').value;">
                <p>SEARCH</p></a>
        </div>
        <br/>

        <div class="pending">
            <a href="orders.php?status=PENDING"><p>PENDING</p></a>
        </div>
        <div class="processing">
            <a href="orders.php?status=PROCESSING"><p>PROCESSING</p></a>
        </div>
        <div class="complete">
            <a href="orders.php?status=COMPLETE"><p>COMPLETE</p></a>
        </div>
    </div>
</div>